<template>
  <div class="header-bar">
    <form action="/" class="header-bar-form">
      <span><i class="iconfont">&#xe61c;</i></span>
      <input type="search" placeholder="搜索你想要的商品" autofocus />
    </form>
    <div class="header-bar-cart">
      <i class="iconfont">&#xe611;</i>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HeaderBar'
}
</script>

<style lang="less" scoped>
@font-face {
  font-family: 'iconfont'; /* Project id 2626983 */
  src: url('//at.alicdn.com/t/font_2626983_nps2bdxfk5f.woff2?t=1624364353660')
      format('woff2'),
    url('//at.alicdn.com/t/font_2626983_nps2bdxfk5f.woff?t=1624364353660')
      format('woff'),
    url('//at.alicdn.com/t/font_2626983_nps2bdxfk5f.ttf?t=1624364353660')
      format('truetype');
}
.iconfont {
  font-family: 'iconfont' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
.header-bar {
  height: 52px;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  &-form {
    width: 84%;
    height: 30px;
    border-radius: 8px;
    background: #e9dfd3;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    span {
      display: block;
      width: 24px;
      height: 24px;
      line-height: 24px;
      text-align: center;
    }
    input {
      width: 86%;
      height: 24px;
      border: none;
      outline: none;
      background: none;
      border-radius: 6px;
      background: rgba(255,255,255,.3);
      font-size: 12px;
      padding-left: 8px;
    }
  }
  &-cart {
    width: 6%;
    height: 24px;
    line-height: 24px;
    text-align: center;
  }
  i{
      color: #EC7B67;
      font-size: 18px;
    }
}
</style>
